package com.wingscode.modules.common.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wingscode.modules.common.entity.ServiceUsageRecordEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 增值服务使用记录
 *
 * @author yan
 */
@Mapper
public interface ServiceUsageRecordDao extends BaseMapper<ServiceUsageRecordEntity> {

    IPage<ServiceUsageRecordEntity> getRecord(IPage<ServiceUsageRecordEntity> page, @Param("userId") Integer userId, @Param("agentId") Integer agentId);

    IPage<ServiceUsageRecordEntity> queryPage(IPage<ServiceUsageRecordEntity> page, @Param("mobile") String mobile, @Param("company") String company,
                                              @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("source") Integer source);
}
